Optimal. Leaf size=86 \[ -\frac {c^2 (b c-a d) \log \left (c+d x^n\right )}{d^4 n}+\frac {c x^n (b c-a d)}{d^3 n}-\frac {x^{2 n} (b c-a d)}{2 d^2 n}+\frac {b x^{3 n}}{3 d n} \]
________________________________________________________________________________________
Rubi [A] time = 0.08, antiderivative size = 86, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 2, integrand size = 24, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.083, Rules used = {446, 77} \begin {gather*} -\frac {c^2 (b c-a d) \log \left (c+d x^n\right )}{d^4 n}+\frac {c x^n (b c-a d)}{d^3 n}-\frac {x^{2 n} (b c-a d)}{2 d^2 n}+\frac {b x^{3 n}}{3 d n} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 77
Rule 446
Rubi steps
\begin {align*} \int \frac {x^{-1+3 n} \left (a+b x^n\right )}{c+d x^n} \, dx &=\frac {\operatorname {Subst}\left (\int \frac {x^2 (a+b x)}{c+d x} \, dx,x,x^n\right )}{n}\\ &=\frac {\operatorname {Subst}\left (\int \left (\frac {c (b c-a d)}{d^3}+\frac {(-b c+a d) x}{d^2}+\frac {b x^2}{d}-\frac {c^2 (b c-a d)}{d^3 (c+d x)}\right ) \, dx,x,x^n\right )}{n}\\ &=\frac {c (b c-a d) x^n}{d^3 n}-\frac {(b c-a d) x^{2 n}}{2 d^2 n}+\frac {b x^{3 n}}{3 d n}-\frac {c^2 (b c-a d) \log \left (c+d x^n\right )}{d^4 n}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.10, size = 78, normalized size = 0.91 \begin {gather*} \frac {-\frac {c^2 (b c-a d) \log \left (c+d x^n\right )}{d^4}+\frac {c x^n (b c-a d)}{d^3}-\frac {x^{2 n} (b c-a d)}{2 d^2}+\frac {b x^{3 n}}{3 d}}{n} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
IntegrateAlgebraic [A] time = 0.07, size = 82, normalized size = 0.95 \begin {gather*} \frac {x^n \left (-6 a c d+3 a d^2 x^n+6 b c^2-3 b c d x^n+2 b d^2 x^{2 n}\right )}{6 d^3 n}+\frac {\left (a c^2 d-b c^3\right ) \log \left (c+d x^n\right )}{d^4 n} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.43, size = 82, normalized size = 0.95 \begin {gather*} \frac {2 \, b d^{3} x^{3 \, n} - 3 \, {\left (b c d^{2} - a d^{3}\right )} x^{2 \, n} + 6 \, {\left (b c^{2} d - a c d^{2}\right )} x^{n} - 6 \, {\left (b c^{3} - a c^{2} d\right )} \log \left (d x^{n} + c\right )}{6 \, d^{4} n} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {{\left (b x^{n} + a\right )} x^{3 \, n - 1}}{d x^{n} + c}\,{d x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.07, size = 125, normalized size = 1.45 \begin {gather*} \frac {a \,c^{2} \ln \left (d \,{\mathrm e}^{n \ln \relax (x )}+c \right )}{d^{3} n}-\frac {a c \,{\mathrm e}^{n \ln \relax (x )}}{d^{2} n}+\frac {a \,{\mathrm e}^{2 n \ln \relax (x )}}{2 d n}-\frac {b \,c^{3} \ln \left (d \,{\mathrm e}^{n \ln \relax (x )}+c \right )}{d^{4} n}+\frac {b \,c^{2} {\mathrm e}^{n \ln \relax (x )}}{d^{3} n}-\frac {b c \,{\mathrm e}^{2 n \ln \relax (x )}}{2 d^{2} n}+\frac {b \,{\mathrm e}^{3 n \ln \relax (x )}}{3 d n} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.53, size = 112, normalized size = 1.30 \begin {gather*} -\frac {1}{6} \, b {\left (\frac {6 \, c^{3} \log \left (\frac {d x^{n} + c}{d}\right )}{d^{4} n} - \frac {2 \, d^{2} x^{3 \, n} - 3 \, c d x^{2 \, n} + 6 \, c^{2} x^{n}}{d^{3} n}\right )} + \frac {1}{2} \, a {\left (\frac {2 \, c^{2} \log \left (\frac {d x^{n} + c}{d}\right )}{d^{3} n} + \frac {d x^{2 \, n} - 2 \, c x^{n}}{d^{2} n}\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {x^{3\,n-1}\,\left (a+b\,x^n\right )}{c+d\,x^n} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 57.94, size = 139, normalized size = 1.62 \begin {gather*} \begin {cases} \frac {\left (a + b\right ) \log {\relax (x )}}{c} & \text {for}\: d = 0 \wedge n = 0 \\\frac {\frac {a x^{3 n}}{3 n} + \frac {b x^{4 n}}{4 n}}{c} & \text {for}\: d = 0 \\\frac {\left (a + b\right ) \log {\relax (x )}}{c + d} & \text {for}\: n = 0 \\\frac {a c^{2} \log {\left (\frac {c}{d} + x^{n} \right )}}{d^{3} n} - \frac {a c x^{n}}{d^{2} n} + \frac {a x^{2 n}}{2 d n} - \frac {b c^{3} \log {\left (\frac {c}{d} + x^{n} \right )}}{d^{4} n} + \frac {b c^{2} x^{n}}{d^{3} n} - \frac {b c x^{2 n}}{2 d^{2} n} + \frac {b x^{3 n}}{3 d n} & \text {otherwise} \end {cases} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________